package com.lins.storedisk.bo;

import com.lins.storedisk.dto.FileDTO;
import com.lins.storedisk.dto.SearchDTO;
import com.lins.storedisk.dto.TreeDTO;
import com.lins.storedisk.entity.FileEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface FileBo {

    List<String> upload(MultipartFile[] files, String parUrl);

    void download(Integer fid, HttpServletResponse response);

    List<FileDTO> findList(SearchDTO dto);

    Integer delete(Integer fid);

    Integer saveFloder(String floderName,String parUrl);

    Integer rename(Integer fid,String newName);

    List<TreeDTO> findTree();

    Integer move(Integer fid,Integer pid);

    Integer changeShare(Integer fid,Integer uid);

    List<FileEntity> searchLike(String keyword);

}
